using System;
using System.ComponentModel;
using System.Runtime.InteropServices;

namespace qPrintComponent
{
    //typedef struct _DRIVER_INFO_1 
    //{ 
    //    LPTSTR pName; 
    //}
    
    public sealed class DriverInfo1 : qSafeDriverInfo
    {
        public DriverInfo1(SafeHandle PrinterHandle)
            : base(PrinterHandle,1)
        {}

        public DriverInfo1(IntPtr MemoryHandle)
            : base(MemoryHandle, 1)
        { }
        
        public override string ToString()
        {
            return Name;
        }

        [Description(@"The name of the driver (for example, QMS 810).")]
        public string Name
        {
            get { return GetStringField(0); }
        }
    }
}
